<?php

namespace App\Exceptions;

class RanchException extends BaseException
{
    const CODE_1001 = 1001;
    const CODE_1002 = 1002;

    protected int $baseCode = self::BASE_CODE_OF_RANCH;    //

    protected array $showMsg = [
        self::CODE_1001 => '牧场不存在',
        self::CODE_1002 => '该状态不允许操作'
    ];

    function __construct($msg = '', $code = 0)
    {
        parent::__construct($msg, $code);
    }
}
